package com.fan.service;

import com.fan.common.ServerResponse;
import com.fan.pojo.Category;

import java.util.List;

public interface ICategoryService {
    ServerResponse addCategory(String categoryName, Integer parentId);
    ServerResponse updateCategoryName(int categoryId,String categoryName);
    ServerResponse<List<Category>> getChildrenParallelCatgory(Integer categoryId);
    ServerResponse<List<Integer>> selectCategoryIdAndChildrenById(Integer categoryId);
}
